import request from '@/utils/request';

// 测试量表列表
export const scalesList = (params) => {
  return request({
    url: 'soulstation/scales/list',
    method: 'get',
    params: params,
  });
};

// 测试量表题目
export const selectQuestionsWithOptionsByScaleId = (params) => {
  return request({
    url: '/soulstation/questions/selectQuestionsWithOptionsByScaleId',
    method: 'get',
    params: params,
  });
};

// 获取我的评估
export const addRecordsAndAnswers = (data) => {
  return request({
    url: '/soulstation/records/addRecordsAndAnswers',
    method: 'post',
    data,
  });
};

// 获取我的评估
export const recordsList = (params) => {
  return request({
    url: '/soulstation/records/list',
    method: 'get',
    params,
  });
};

// 获取视频列表
export const videoList = (params) => {
  return request({
    url: '/soulstation/videos/list',
    method: 'get',
    params,
  });
};

// 获取随机四条视频
export const videoListRandom = (params) => {
  return request({
    url: '/soulstation/videos/listRandom',
    method: 'get',
    params,
  });
};

// 获取Ai客服猜你想问答案
export const getAiContentList = (params) => {
  return request({
    url: '/soulstation/customerServiceDialogue/getContentList',
    method: 'get',
    params,
  });
};

// 获取Ai客服相关问题
export const getFollowUpQuestions = (data) => {
  return request({
    url: 'http://10.18.124.22:6559/soul/chat',
    method: 'post',
    data,
  });
};
